home *** CD-ROM | disk | FTP | other *** search
- Path: alpha2.csd.uwm.edu!mardavuy
- From: mardavuy@alpha2.csd.uwm.edu (Mario David Uy)
- Newsgroups: comp.lang.c
- Subject: Help, I think with an array
- Date: 8 Apr 1996 17:11:49 GMT
- Organization: Information & Media Technologies, University of Wisconsin - Milwaukee
- Distribution: world
- Message-ID: <4kbhcl$p4l@uwm.edu>
- NNTP-Posting-Host: 129.89.169.2
-
- I am a beginner to programming and I have a problem.
- Well, I have this one table that I want to use. I looks somewhat like this.
-
- Age points
- 30 -3
- 31 -2
- 32-33 -1
- 34 0
- 35-36 1
- ... ...
-
- What I want the program to do is have a user input the age value and then the
- program will give the point value.
-
- I have no idea how to do this, but I think I need to use an array
- (I sure I could use if...else but I want to try to use an array.
- Also I have seven of these tables)
-
- Thanks,
- David
- mardavuy@csd.uwm.udu
- --
- -------------------------------------------------------------------------------
- || ||Is it gonna be hide or seek, ||
- || Mario David Uy || is it gonna be win or lose? ||
- || mardavuy@csd.uwm.edu ||Is it gonna be pride that keeps||
-